package com.snopy.designPattern.structure.bridge.impl;

import com.snopy.designPattern.structure.bridge.inter.Message;
import com.snopy.designPattern.structure.bridge.inter.MessageSender;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;



/**
 * @author snopy
 * @version 1.0.0
 * @classname TxtMessage
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/02 18:16
 */
@Setter
@Getter
@Slf4j
public class TxtMessage extends Message {
    private String destination;

    public TxtMessage(MessageSender messageSender) {
        super(messageSender);
    }
    @Override
    public void send() {
        messageSender.sendMessage();
    }

    @Override
    public void send(String msg) {
        messageSender.sendMessage();
    }
}
